Repository navigation
fix(ui): paint the scrim and the active select option without the important modifier - #1320
Merged
Merged
Conversation
…ortant modifier The dialog scrims carried an important modifier because the vue-final-modal stylesheet is unlayered and so beats every layered Tailwind utility. The stylesheet is now imported into the base layer, below the utilities, and the scrim wins on its own. The active select option carried md-state-focus! to beat the hover and pressed state layer rules. It now takes the focus state from a data-active variant, which sorts after them with the same specificity. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The last important modifiers of the dashboard sat on the dialog scrim (MdDialog, AdjustmentsModal, DeleteEntryModal) and on the active option of the select. Neither had a real need for it.
The scrims needed it because the vue-final-modal stylesheet was imported unlayered, and an unlayered rule beats every utility in a layer whatever its specificity. The stylesheet now loads into the base layer, below the utilities, so the plain
bg-scrim/md-scrimwins. The active select option needed it to outrank the hover and pressed rules of the state layer. It now takes the focus state through adata-activevariant, which is emitted after them at the same specificity. Nothing looks different: the built CSS keeps the same rules in the same effective order.Completes the remainder of task 7.7 of migrate-content-to-components.
Type of change
fix- bug fixHow was this tested?
npm run eslint,npm run typecheck, vitest on src/anchors, src/style-gate and src/components (5686 passed).vite build: the overlay rule sits in the base layer, ahead of the utilities, and thedata-activerule follows the hover rule.Checklist
CLAUDE.md./gradlew buildpasses locally (frontend checks only)